package com.itheima3.service.impl;



import com.itheima3.dao.UserDao;
import com.itheima3.domain.User;
import com.itheima3.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    public void setUserDao(User user) {
        this.userDao = userDao;
    }
    public void regist(User user) {
        System.out.println(user);
        userDao.regist(user);
    }
}
